home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Atari Compendium
/
The Atari Compendium (Toad Computers) (1994).iso
/
files
/
umich
/
utils
/
gemfut15.lzh
/
AESUTOB2.C
< prev
next >
Wrap
C/C++ Source or Header
|
1989-08-26
|
1KB
|
42 lines
/**************************************************************************
*
* AESFAST PD utilties.
*
* Object-related utilities 2...
* obj_flchange
* obj_stchange
*************************************************************************/
#include <gemfast.h>
/*-------------------------------------------------------------------------
* obj_xywh - Return object's GRECT, not adjusted to screen coordinates.
*-----------------------------------------------------------------------*/
void
obj_xywh(ptree, object, prect)
OBJECT *ptree;
int object;
GRECT *prect;
{
rc_copy( &(ptree[object].ob_x), prect );
}
/*-------------------------------------------------------------------------
* obj_offxywh - Return object's GRECT, adjusted to screen coordinates.
*-----------------------------------------------------------------------*/
void
obj_offxywh(ptree, object, prect)
OBJECT *ptree;
int object;
GRECT *prect;
{
rc_copy( &(ptree[object].ob_x), prect );
objc_offset(ptree, object, &(prect->g_x), &(prect->g_y));
}